package com.gxp.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.gxp.util.common.GXPConstant;


public class User  implements Serializable {	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8635634345943580670L;

	private String userId;
	
	private String password;

    private String userM;

    private Integer status;

    private Date regDate;

    private String phoneN;

    private String email;

    private String org;

    private Integer sex;

    private String qq;

    private String intro;

    private String logoUrl;
    
    private List<Role> roleList;
    
    private List<Integer> selectedRoleList;
    
    private String j_username;
    private String kaptcha;
    
    
    public List<Integer> getSelectedRoleList() {
		return selectedRoleList;
	}

	public void setSelectedRoleList(List<Integer> selectedRoleList) {
		this.selectedRoleList = selectedRoleList;
	}

	public String getRegDateStr() {
    	if (regDate == null) {
    		return "";
    	}
        return GXPConstant.TIMEFORMAT.format(regDate);
    }

    public String getJ_username() {
		return j_username;
	}

	public void setJ_username(String j_username) {
		this.j_username = j_username;
	}

	public String getKaptcha() {
		return kaptcha;
	}

	public void setKaptcha(String kaptcha) {
		this.kaptcha = kaptcha;
	}

	public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserM() {
        return userM;
    }

    public void setUserM(String userM) {
        this.userM = userM == null ? null : userM.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setRegDate(Date regDate) {
        this.regDate = regDate;
    }

    public String getPhoneN() {
        return phoneN;
    }

    public void setPhoneN(String phoneN) {
        this.phoneN = phoneN;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org == null ? null : org.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl == null ? null : logoUrl.trim();
    }
    
    
	public List<Role> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}
}
